/****************************************************************************/
/*	Local variable  definitions('static')
*****************************************************************************/

static uint16_t sound1[] = { // yishan yishan liangjinjin
	// period          time, duty   (0 X 0) means space (0 0 X) means finish
	PWM_PERIOD_MOTOR_1, 600, 5,
	PWM_PERIOD_MOTOR_1, 600, 5,
	PWM_PERIOD_MOTOR_5, 600, 5,
	PWM_PERIOD_MOTOR_5, 600, 5,
	PWM_PERIOD_MOTOR_6, 600, 5,
	PWM_PERIOD_MOTOR_6, 600, 5,
	PWM_PERIOD_MOTOR_5, 600, 5,
	0, 800, 5,
	PWM_PERIOD_MOTOR_4, 600, 5,
	PWM_PERIOD_MOTOR_4, 600, 5,
	PWM_PERIOD_MOTOR_3, 600, 5,
	PWM_PERIOD_MOTOR_3, 600, 5,
	PWM_PERIOD_MOTOR_2, 600, 5,
	PWM_PERIOD_MOTOR_2, 600, 5,
	PWM_PERIOD_MOTOR_1, 600, 5,
	0, 800, 5,
	PWM_PERIOD_MOTOR_5, 600, 5,
	PWM_PERIOD_MOTOR_5, 600, 5,
	PWM_PERIOD_MOTOR_4, 600, 5,
	PWM_PERIOD_MOTOR_4, 600, 5,
	PWM_PERIOD_MOTOR_3, 600, 5,
	PWM_PERIOD_MOTOR_3, 600, 5,
	PWM_PERIOD_MOTOR_2, 600, 5,
	0, 800, 5,
	PWM_PERIOD_MOTOR_5, 600, 5,
	PWM_PERIOD_MOTOR_5, 600, 5,
	PWM_PERIOD_MOTOR_4, 600, 5,
	PWM_PERIOD_MOTOR_4, 600, 5,
	PWM_PERIOD_MOTOR_3, 600, 5,
	PWM_PERIOD_MOTOR_3, 600, 5,
	PWM_PERIOD_MOTOR_2, 600, 5,
	0, 0, 5
};

// happy birthday to you
static uint16_t sound2[] = {
	PWM_PERIOD_MOTOR_5, 300, 5,
	PWM_PERIOD_MOTOR_5, 300, 5,
	PWM_PERIOD_MOTOR_6, 600, 5,
	PWM_PERIOD_MOTOR_5, 600, 5,
	PWM_PERIOD_MOTOR_1, 600, 5,
	PWM_PERIOD_MOTOR_7, 600, 5,
	0, 800, 5,
	PWM_PERIOD_MOTOR_5, 300, 5,
	PWM_PERIOD_MOTOR_5, 300, 5,
	PWM_PERIOD_MOTOR_6, 600, 5,
	PWM_PERIOD_MOTOR_5, 600, 5,
	PWM_PERIOD_MOTOR_2, 600, 5,
	PWM_PERIOD_MOTOR_1, 600, 5,
	0, 800, 5,
	PWM_PERIOD_MOTOR_5, 300, 5,
	PWM_PERIOD_MOTOR_5, 600, 5,
	PWM_PERIOD_MOTOR_5, 600, 5,
	PWM_PERIOD_MOTOR_3, 600, 5,
	PWM_PERIOD_MOTOR_1, 600, 5,
	PWM_PERIOD_MOTOR_7, 300, 5,
	PWM_PERIOD_MOTOR_6, 300, 5,
	PWM_PERIOD_MOTOR_4, 300, 5,
	PWM_PERIOD_MOTOR_4, 600, 5,
	PWM_PERIOD_MOTOR_3, 600, 5,
	PWM_PERIOD_MOTOR_1, 600, 5,
	PWM_PERIOD_MOTOR_3, 600, 5,
	PWM_PERIOD_MOTOR_2, 600, 5,
	0, 0, 5
};

static uint16_t sound3[] = {
	PWM_PERIOD_MOTOR_3, 100, 5,
	0, 100, 0,
	PWM_PERIOD_MOTOR_1, 100, 5,
	0, 100, 0,
	0,0, 5
};

static uint16_t sound4[] = {
	PWM_PERIOD_MOTOR_2, 100, 5,
	PWM_PERIOD_MOTOR_5, 200, 5,
	0,0,5
};

// power line plug finish 
static uint16_t sound5[] = {
	PWM_PERIOD_MOTOR_6, 100, 5,
	PWM_PERIOD_MOTOR_7, 200, 5,
	0,0,5
};

#ifdef CHARGE_SOUND
static uint16_t sound6[] = { // charge stop
	PWM_PERIOD_MOTOR_AP0, 100, 5,
	PWM_PERIOD_MOTOR_AP0, 100, 0,
	PWM_PERIOD_MOTOR_B0, 100, 5,
//	PWM_PERIOD_MOTOR_B0, 100, 0,
	0,0,0
};

static uint16_t sound7[] = { // charge start
	PWM_PERIOD_MOTOR_C, 100, 5,
	PWM_PERIOD_MOTOR_C, 100, 0,
	PWM_PERIOD_MOTOR_CP, 100, 5,
//	PWM_PERIOD_MOTOR_CP, 100, 0,
	0,0,0
};
#else
static uint16_t sound6[] = { // charge stop
	PWM_PERIOD_MOTOR_FP0, 50, CHARGE_SOUND_DUTY,
	0, 200, 0,
	PWM_PERIOD_MOTOR_FP0, 50, CHARGE_SOUND_DUTY,
	// PWM_PERIOD_MOTOR_FP0, 200, 0,
	0,0,0
};

static uint16_t sound7[] = { // charge start
	PWM_PERIOD_MOTOR_G0, 50, CHARGE_SOUND_DUTY,
	0, 200, 0,
	PWM_PERIOD_MOTOR_G0, 50, CHARGE_SOUND_DUTY,
	// PWM_PERIOD_MOTOR_G0, 200, 0,
	0,0,0
};
#endif

static uint16_t lock_on_8[] = {
	PWM_PERIOD_MOTOR_C, 100, LOCK_SOUND_DUTY,
	PWM_PERIOD_MOTOR_C, 100, 0,
	PWM_PERIOD_MOTOR_E, 100, LOCK_SOUND_DUTY,
	PWM_PERIOD_MOTOR_E, 100, 0,
	PWM_PERIOD_MOTOR_G, 100, LOCK_SOUND_DUTY,
	PWM_PERIOD_MOTOR_G, 100, 0,
	0,0,  5
};

static uint16_t lock_off_9[] = {
	PWM_PERIOD_MOTOR_G0, 100, LOCK_SOUND_DUTY,
	PWM_PERIOD_MOTOR_G0, 100, 0,
	PWM_PERIOD_MOTOR_C, 100, LOCK_SOUND_DUTY,
	PWM_PERIOD_MOTOR_C, 100, 0,
	PWM_PERIOD_MOTOR_E, 100, LOCK_SOUND_DUTY,
	PWM_PERIOD_MOTOR_E, 100, 0,
	0,0,5
};
